package com.jy.api.dao;

import com.jy.api.domain.TeamTransaction;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by xiaohua on 2018/12/24.
 */
public interface TeamTransactionDao extends CrudRepository<TeamTransaction, Integer> {

    List<TeamTransaction> findByStoreIdInAndEnable(List<String> storeId, boolean enable);

    List<TeamTransaction> findByTeamIdAndEnable(int teamId, boolean enable);

    TeamTransaction findByStoreIdAndEnable(String storeId,boolean enabled);
}
